package com.github.m6d21.sso.service.user;

import com.github.m6d21.sso.model.user.entity.User;
import com.github.m6d21.sso.model.user.qo.UserQO;
import com.github.pagehelper.PageInfo;
import java.util.List;

/**
 *<p>
 *IUserService
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:37:32
 * @since 1.0.0
 */
public interface IUserService {

    List<User> findByUsernameAndPassword(String username, String password);

    List<User> query(UserQO userQO);

    PageInfo<User> queryByPage(Integer pageNo, Integer pageSize, UserQO userQO);

    User saveUser(User user);

    User modifyUserById(User user);

    User getUserByToken(String token);

    User getCurrentUser();

    Boolean exist(String username);

    User loadUserByUsername(String username);

    Boolean deleteUserById(Integer id);

    Boolean deleteUserByIds(List<Integer> ids);

}
